<template>
  <div class="row justify-content-center">
    <div class="col-8">
      <div v-if="uploadImage">
        <h2 class="jh-entity-heading">
          <span v-text="$t('workflowApp.filesUploadImage.detail.title')">UploadImage</span> {{ uploadImage.id }}
        </h2>
        <dl class="row jh-entity-details">
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.id')">ID</span>
          </dt>
          <dd>
            <span>{{ uploadImage.id }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.fullName')">Full Name</span>
          </dt>
          <dd>
            <span>{{ uploadImage.fullName }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.name')">Name</span>
          </dt>
          <dd>
            <span>{{ uploadImage.name }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.ext')">Ext</span>
          </dt>
          <dd>
            <span>{{ uploadImage.ext }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.type')">Type</span>
          </dt>
          <dd>
            <span>{{ uploadImage.type }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.url')">Url</span>
          </dt>
          <dd>
            <span>{{ uploadImage.url }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.path')">Path</span>
          </dt>
          <dd>
            <span>{{ uploadImage.path }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.folder')">Folder</span>
          </dt>
          <dd>
            <span>{{ uploadImage.folder }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.entityName')">Entity Name</span>
          </dt>
          <dd>
            <span>{{ uploadImage.entityName }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.createAt')">Create At</span>
          </dt>
          <dd>
            <span>{{ uploadImage.createAt | formatDate }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.fileSize')">File Size</span>
          </dt>
          <dd>
            <span>{{ uploadImage.fileSize }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.smartUrl')">Smart Url</span>
          </dt>
          <dd>
            <span>{{ uploadImage.smartUrl }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.mediumUrl')">Medium Url</span>
          </dt>
          <dd>
            <span>{{ uploadImage.mediumUrl }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.referenceCount')">Reference Count</span>
          </dt>
          <dd>
            <span>{{ uploadImage.referenceCount }}</span>
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.user')">User</span>
          </dt>
          <dd>
            {{ uploadImage.userLogin }}
          </dd>
          <dt>
            <span v-text="$t('workflowApp.filesUploadImage.category')">Category</span>
          </dt>
          <dd>
            <div v-if="uploadImage.categoryId">
              <router-link :to="{ name: 'ResourceCategoryView', params: { resourceCategoryId: uploadImage.categoryId } }">{{
                uploadImage.categoryTitle
              }}</router-link>
            </div>
          </dd>
        </dl>
        <button type="submit" v-on:click.prevent="previousState()" class="btn btn-info">
          <font-awesome-icon icon="arrow-left"></font-awesome-icon>&nbsp;<span v-text="$t('entity.action.back')"> Back</span>
        </button>
        <router-link
          v-if="uploadImage.id"
          :to="{ name: 'UploadImageEdit', params: { uploadImageId: uploadImage.id } }"
          tag="button"
          class="btn btn-primary"
        >
          <font-awesome-icon icon="pencil-alt"></font-awesome-icon>&nbsp;<span v-text="$t('entity.action.edit')"> Edit</span>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script lang="ts" src="./upload-image-details.component.ts"></script>
